import axios from '../utils/request.js'
import qs from 'qs' //引入qs

export function save(role) {
	return axios.post('/sys/role/save', role);
}

export function deleteById(id) {
	return axios.delete('/sys/role/' + id);
}


export function enableSave(role) {
	return axios.post('/sys/role/enable/save', role);
}

export function findById(id) {
	return axios.get('/sys/role/' + id);
}

export function list(params) {
	return axios.get('/sys/role/list?' + qs.stringify(params));
}
